package clases;

public class Disco implements Cloneable {

	private int tamano;

	public int getTamano() {
		return tamano;
	}

	public void setTamano(int tamano) {
		this.tamano = tamano;
	}

	public Disco() {
		super();
	}

	public Disco(int tamano) {
		super();
		this.tamano = tamano;
	}

	@Override
	public String toString() {
		return "Disco_" + tamano;
	}

	@Override
	public Disco clone() {
		Disco discoNuevo = new Disco();
		discoNuevo.setTamano(getTamano());
		return discoNuevo;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj != null && obj instanceof Disco) {
			return ((Disco) obj).tamano == tamano;
		}
		else {
			return false;
		}
	}
}
